import request from '@/utils/request'
export default{
    //登录
    login(userInfo){
        return request({
            url:'/customerservice/customer/login',
            method:'post',
            data:userInfo
        })
    },
    //获取用户信息
    getUserInfo(){
        return request({
            url:'/customerservice/customer/getCustomerInfo',
            method:'get'
        })
    },
    //获取验证码
    sendCode(phone){
        return request({
            url:`/textmessage/send/${phone}`,
            method:'get'
        })
    },
    //注册
    register(customerVo){
        return request({
            url:'/customerservice/customer/register',
            method:'post',
            data:customerVo
        })
    }
}